package com.proposition.commons.enums;

import com.baomidou.mybatisplus.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

/**
 * ${DESCRIPTION}
 *
 * @author 杨凯
 * @create 2017-11-03 8:41
 **/
public enum PaperPattern implements IEnum {

	WEN_DA(1,"问答题"),
	CHANG_GUI(2,"常规化"),
	KE_GUAN(3,"客观化");

	private int value;
	private String desc;
	PaperPattern(int value, String desc) {
		this.value = value;
		this.desc = desc;
	}
	@Override
	public Serializable getValue() {
		return this.value;
	}

	private void setValue(int value) {
		this.value = value;
	}

	@JsonValue // Jackson 注解，可序列化该属性为中文描述【可无】
	private String getDesc(){
		return this.desc;
	}

	private void setDesc(String desc) {
		this.desc = desc;
	}
}
